package com.example.groupmeal.utils;

public enum ResultCode {
	
	SUCCESS(2000, "请求成功"),
	ERROR(2004, "请求失败"),
	PLACE_ORDER_ERROR(2006, "已下单"),
	TOKEN_ERROR(2005, "token验证失败"),
    WEAK_NET_WORK(-1, "网络异常，请稍后重试"),
    PASSWORD_ERROR(10001, "用户名或密码错误"),
    PARAMETER_ERROR(10101, "参数错误");

    private int error_code;
    private String error_msg;

    ResultCode(int code, String msg) {
        this.error_code = code;
        this.error_msg = msg;
    }

    public int getError_code() {
		return error_code;
	}

	public String getError_msg() {
		return error_msg;
	}

}
